home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / maplay-1.2 / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-04  |  2.9 KB  |  96 lines

  1. #
  2. #  @(#) Makefile 1.10, last edit: 6/21/94 11:30:23
  3. #  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  4. #  @(#) Berlin University of Technology
  5. #
  6. #  This program is free software; you can redistribute it and/or modify
  7. #  it under the terms of the GNU General Public License as published by
  8. #  the Free Software Foundation; either version 2 of the License, or
  9. #  (at your option) any later version.
  10. #
  11. #  This program is distributed in the hope that it will be useful,
  12. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #  GNU General Public License for more details.
  15. #
  16. #  You should have received a copy of the GNU General Public License
  17. #  along with this program; if not, write to the Free Software
  18. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20.  
  21. #
  22. #  Changes from 1.1 to 1.2:
  23. #    - dependencies described directly, no more makedepend required
  24. #    - all .c source files rename to .cc files
  25. #    - strip command included after a successful compilation
  26. #    - this makefile is now "Star Trek The Next Generation" compatible!
  27. #
  28.  
  29. DESTDIR = /usr/skunk
  30.  
  31. CFLAGS = $(COMPILERFLAGS)
  32. # debugging: -ggdb -DDEBUG
  33. # profiling: -pg (gprof) or -p (prof)
  34. # strip command has to be removed for debugging or profiling
  35.  
  36.  
  37. OBJS = maplay.o ibitstream.o header.o scalefactors.o subband_layer_1.o subband_layer_2.o \
  38.        synthesis_filter.o obuffer.o crc.o ulaw.o
  39.  
  40.  
  41. .SUFFIXES:    .cc
  42.  
  43. all:        configure maplay
  44.  
  45. configure:
  46.         sh ./configuration.sh
  47.  
  48. maplay:        $(OBJS)
  49.         $(COMPILER) $(CFLAGS) $(OBJS) -o $@ $(LIBRARIES) -lm
  50.         -strip $@
  51.  
  52. install: maplay
  53.     -mkdir -p $(DESTDIR)/bin
  54.     -cp maplay $(DESTDIR)/bin/maplay
  55.  
  56. .cc.o:
  57.         $(COMPILER) -c $(CFLAGS) $(INCLUDEDIRS) $*.cc -o $@
  58.  
  59. depend:
  60.         makedepend $(INCLUDEDIRS) -w100 *.cc
  61.  
  62. clean:
  63.         -rm -f maplay makedepend_done audio_includes.h Makefile.bak
  64.         -rm -f *.o
  65.  
  66. tags:
  67.         -rm -f TAGS
  68.         etags *.cc *.h Makefile configuration.sh
  69.  
  70. it:
  71.         @echo >/dev/null
  72. so:
  73.         @echo I\'ll do my very best, Captain.
  74.         @make install
  75.         @echo Further orders, Sir\?
  76.  
  77.  
  78. crc.o:            all.h crc.h
  79. header.o:        all.h crc.h header.h ibitstream.h
  80. ibitstream.o:        all.h ibitstream.h
  81. maplay.o:        all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  82.             scalefactors.h subband.h subband_layer_1.h subband_layer_2.h \
  83.             synthesis_filter.h ulaw.h
  84. scalefactors.o:        all.h scalefactors.h
  85. ulaw.o:            all.h ulaw.h
  86. obuffer.o:        all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h ulaw.h
  87. subband_layer_1.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  88.             scalefactors.h subband.h subband_layer_1.h synthesis_filter.h ulaw.h
  89. subband_layer_2.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  90.             scalefactors.h subband.h subband_layer_2.h synthesis_filter.h ulaw.h
  91. synthesis_filter.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  92.             synthesis_filter.h ulaw.h
  93.  
  94.  
  95. # DO NOT DELETE THIS LINE -- make depend depends on it.
  96.